package org.wmq.organizationmanagement.service;

import io.minio.errors.*;

import java.io.IOException;
import java.io.InputStream;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface MinioService {
    void uploadFile(String objectName, InputStream inputStream, long size) throws Exception;
    InputStream downloadFile(String objectName) throws Exception;
    void deleteFile(String url) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;
}
